import https from './https.js'

const api = {
  wxlogin: '/api/miniapp/wxlogin',
  login:'/api/miniapp/login',
  getServerCategory:'/api/miniapp/getServerCategory',
  getSetmealByServer:'/api/miniapp/getSetmealByServer',
  getpdf:'/api/miniapp/getpdf',
  getPrenatalCare:'/api/miniapp/getPrenatalCare',
  gonextpasswordcheck:'/api/miniapp/gonextpasswordcheck'
}

// 微信登陆
export const login = (params = {}) => {
  return https.post(api.login, params)
}

export const wxlogin = (params = {}) => {
  return https.post(api.wxlogin, params)
}

export const getServerCategory = (params = {}) => {
  return https.post(api.getServerCategory, params)
}


export const getSetmealByServer = (params = {}) => {
  return https.post(api.getSetmealByServer, params)
}

export const getpdf = (params = {}) => {
  return https.post(api.getpdf, params)
}

export const getPrenatalCare = (params = {}) => {
  return https.post(api.getPrenatalCare, params)
}

export const gonextpasswordcheck = (params = {}) => {
  return https.post(api.gonextpasswordcheck, params)
}

